package com.firword.common.domain;

import com.firword.common.domain.base.BaseDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.Instant;

@Entity
@Table(name = "sys_dic")
public class SysDic extends BaseDomain {

    @Id
    @Column(name = "id_", length = 32)
    private String id;
    @Column(name = "type_")
    private String type;
    @Column(name = "type_name_")
    private String typeName;
    @Column(name = "code_")
    private String code;
    @Column(name = "code_name_")
    private String codeName;
    @Column(name = "is_active_")
    private Integer isActive;
    @Column(name = "order_")
    private Integer order;
    @Column(name = "create_by_", length = 32)
    private String createBy;
    @Column(name = "update_by_", length = 32)
    private String updateBy;
    @Column(name = "created_")
    private Instant created;
    @Column(name = "updated_")
    private Instant updated;

    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName == null ? null : codeName.trim();
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public Integer getIsActive() {
        return isActive;
    }

    @Override
    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    @Override
    public Integer getOrder() {
        return order;
    }

    @Override
    public void setOrder(Integer order) {
        this.order = order;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Instant getCreated() {
        return created;
    }

    @Override
    public void setCreated(Instant created) {
        this.created = created;
    }

    @Override
    public Instant getUpdated() {
        return updated;
    }

    @Override
    public void setUpdated(Instant updated) {
        this.updated = updated;
    }
}